package com.wyfx.blockchain.service;

import com.wyfx.blockchain.entity.Block;

import java.util.List;
import java.util.Map;

/**
 * @Description
 * @Auther: wsm
 * @Date: 2020/9/3 14:38
 */
public interface IBlockService {

    String  generateBlock(String data);
    Block getBlockByHash(String hash);
    Block getFirstBlock();
    Block getLastBlock();
    Block getNextBlock(Block block);
    List<Block> listOfBlock();

    /*======================================*/
    void addData(String data);

    Map<String,List<String>> packageData();

}
